package com.zhiyou100.crm.service.impl;

import com.zhiyou100.crm.dao.CustomerSourceDao;
import com.zhiyou100.crm.dao.impl.CustomerSourceDaoImpl;
import com.zhiyou100.crm.service.CustomerSourceService;
import com.zhiyou100.crm.util.CustomerSource;

import java.util.List;

public class CustomerSourceServiceImpl implements CustomerSourceService {
    CustomerSourceDao customerSourceDao=new CustomerSourceDaoImpl();
    @Override
    public List<CustomerSource> qureyAll() {
        return customerSourceDao.qureyAll();
    }

    @Override
    public int delete(int id) {
        return customerSourceDao.delete(id);
    }

    @Override
    public boolean add(CustomerSource customerSource) {
        return customerSourceDao.add(customerSource);
    }

    @Override
    public int update(CustomerSource customerSource) {
        return customerSourceDao.update(customerSource);
    }
}
